// src/config/adminMenu.ts
import { Component } from 'vue'
import { User, Odometer, Setting,Document,
  UserFilled,Female
 } from '@element-plus/icons-vue'

export interface AdminMenuItem {
  id: string
  title: string
  icon: Component
  path?: string // 叶子节点路由
  children?: AdminMenuItem[] // 子菜单（支持多级）
  meta?: {
    hidden?: boolean // 是否隐藏
    roles?: string[] // 权限控制（预留）
  }
}

export const adminMenuItems: AdminMenuItem[] = [
  {
    id: 'dashboard',
    title: '仪表盘',
    icon: Odometer,
    path: '/admin/dashboard'
  },
  {
    id: 'origin',
    title: '基础系统管理',
    icon: Setting,
    children: [
      {
        id: 'system-user',
        title: '用户管理',
        icon: User,
        path: '/admin/system/user'
      },
      // {
      //   id: 'AIchat',
      //   title: 'AI对话内容记录',
      //   icon: Document,
      //   path: '/admin/system/ai-chat'
      // },
      {
        id: 'blog',
        title: '博客管理',
        icon: Document,
        path: '/admin/system/blog'
      },
      {
        id: 'ai-project',
        title: 'AI项目',
        icon: Document,
        path: '/admin/system/ai-project'
      },
    ]
  },
  {
    id: 'family',
    title: '家庭功能',
    icon: UserFilled,
    children: [
      {
        id: 'account',
        title: '账单管理',
        icon: Document,
        path: '/admin/family/account'
      },
      {
        id: 'family-control',
        title: '家庭管理',
        icon: Female,
        path: '/admin/family/family-control'
      },
      {
        id: 'recipe',
        title: '食谱管理',
        icon: Female,
        path: '/admin/family/recipe'
      },
      {
        id: 'pet',
        title: '宠物管理',
        icon: Female,
        path: '/admin/family/pet'
      },
    ]
  }
]